import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("rrz_admin_role", { schema: "rrzcms" })
export class RrzAdminRole {
  @PrimaryGeneratedColumn({
    type: "smallint",
    name: "role_id",
    comment: "角色ID",
    unsigned: true,
  })
  roleId: number;

  @Column("varchar", {
    name: "role_name",
    nullable: true,
    comment: "角色名称",
    length: 30,
  })
  roleName: string | null;

  @Column("text", { name: "act_list", nullable: true, comment: "权限列表" })
  actList: string | null;

  @Column("varchar", {
    name: "role_desc",
    nullable: true,
    comment: "角色描述",
    length: 255,
  })
  roleDesc: string | null;
}
